/**************************************************
 * Filename: CData.java
 * Version: v1.0
 * CreatedDate: 2011-4-30
 * Copyright (C) 2011 By cafebabe.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 * If you would like to negotiate alternate licensing terms, you may do
 * so by contacting the author: talentyao@foxmail.com
 ***************************************************/
 
package tk.mystudio.idc.excel;

import java.util.Date;

import tk.mystudio.idc.excel.Header;
import tk.mystudio.idc.excel.Sheet;
import tk.mystudio.idc.excel.Header.Format;

/**
 * 功能描述
 * @author cafebabe
 * @since 2011-4-30 
 * @version 1.0
 */
@Sheet("我的Excel")
public class CData {
	
	@Header(value="编码", format=Format.MessageFormat, pattern="编号:{0}")
	private int id;
	
	@Header("SB")
	private String sb;
	
	
	@Header("名字")
	private String name;
	
	@Header("long测试")
	private long area;
	
	@Header(value="日期测试", format=Format.SimpleDateFormat, pattern="yyyy/MM/dd HH:mm")
	private Date birthday;
	

	/**
	 * 构造函数 
	 */
	
	public CData() {
		super();
	}

	/**
	 * 构造函数
	 * @param id
	 * @param name
	 * @param area
	 * @param birthday 
	 */
	
	public CData(int id, String name, long area, Date birthday) {
		super();
		this.id = id;
		this.name = name;
		this.area = area;
		this.birthday = birthday;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getArea() {
		return area;
	}

	public void setArea(long area) {
		this.area = area;
	}

	public Date getBirthday() {
		return birthday;
	}


	/**
	 * @param sb The sb to set.
	 */
	public void setSb(String sb) {
		this.sb = sb;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
}